package org.phalanx.gwt.client.graphics.map;


/*
 * This class holds the map tile information for PhalanxMap Object
 * No images are actually stored here but are referenced for retrieval 
 * by the appropriate classes
 * */
public class MapTile {
	private PhalanxMapTerrain tileTerrainType;
	private String imageReference;
	
	public MapTile(){}
	
	public MapTile(PhalanxMapTerrain terrainType){
		tileTerrainType = terrainType;
	}
	
	public MapTile(PhalanxMapTerrain terrainType, String imageReference){
		this(terrainType);
		this.imageReference = imageReference;
	}
	
	public PhalanxMapTerrain getTerrain(){
		return tileTerrainType;
	}
	
	public String getImageReference(){
		return imageReference;
	}
	
	public void setTerrain(PhalanxMapTerrain terrainType){
		this.tileTerrainType = terrainType;
	}
	
	public void setImageReference(String imageReference){
		this.imageReference = imageReference;
	}

	@Override
	public String toString() {
		return "[Map Tile] Terrain = " + this.getTerrain().getTerrainType()+ "; Image Reference = " + this.getImageReference();
	}
}
